<?php
use Workerman\Worker;

require_once __DIR__."/../Autoloader.php";

$worker = new Worker("websocket://0.0.0.0:1234");

$worker->onMessage=function ($connect,$data){
    $connect->send("hello");
};

Worker::runAll();